package com.mysteel.seckill.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * ProjectName: mail
 * ClassName: ScheduledConfig
 * Description:
 * date: 2021/04/07/007 16:03
 *
 * @author xiaochao
 */
/**
 * 定时任务：
 * @EnableScheduling：启用定时任务功能
 * @Scheduled：开启定时任务
 * 自动配置类：TaskSchedulingAutoConfiguration
 * 异步任务：
 * @EnableAsync：开启异步任务功能
 * @Async：给希望异步执行的任务开启异步
 * 自动配置类：TaskExecutionAutoConfiguration
 */
@Configuration
@EnableScheduling
@EnableAsync
public class ScheduledConfig {
}
